package com.hrt.bean;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/** 
 * 礼品评论表
 */
@Entity
@Table(name = "GIFT_COMMENTS")
@JsonIgnoreProperties(value = { "hrtMember","giftDetail","usersInfor","comments"})
public class Replys implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	/**回复id*/
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "REPLYS_ID")
	private Long id;
	
	/**会员实体（前台）*/
	@ManyToOne(cascade = {CascadeType.REFRESH, CascadeType.MERGE}, optional = false)
	@JoinColumn(name = "MENBER_ID")
	private HRTMember hrtMember;
	/**会员实体Id（前台）*/
	@Column(name = "MENBER_ID",insertable=false,updatable=false)
	private Long hrtMemberId;
	
	
	/**用户实体（后台）*/
	@ManyToOne(cascade = {CascadeType.REFRESH, CascadeType.MERGE}, optional = false)
	@JoinColumn(name = "Users_ID")
	private UsersInfor usersInfor;
	/**用户实体Id（后台）*/
	@Column(name = "Users_ID",insertable=false,updatable=false)
	private Long usersInforId;
	
	
	/** 关联礼品规格实体 */
	@ManyToOne(cascade = {CascadeType.REFRESH, CascadeType.MERGE}, optional = false)
	@JoinColumn(name = "GDE_ID")
	private GiftDetail giftDetail;
	/** 礼品规格ID */
	@Column(name = "GDE_ID",insertable=false,updatable=false)
	private Long gdeId;
	
	/** 评论实体 */
	@ManyToOne(cascade = {CascadeType.REFRESH, CascadeType.MERGE}, optional = false)
	@JoinColumn(name = "COMMENTS_ID")
	private Comments comments;
	/** 评论ID */
	@Column(name = "COMMENTS_ID",insertable=false,updatable=false)
	private Long commentsId;
	

	/**礼品回复内容*/
	@Column(name = "REPLYS_CONTENT", length = 500)
	private String content;
	
	/**多图片上传*/
	@Column(name = "REPLYS_PICTURE", length = 1000)
	private String picture;
	
	
	/** 
	 * 备注 
	 */
	@Column(name = "REPLYS_NOTE", length = 500)
	private String note;
	
	/** 0是公开评论 1是匿名评论   */
	@Column(name = "REPLYS_ANONYMOUS", length = 500)
	private Integer anonymous;
	
	/**
	 * 删除标记 0未删除 1已删除
	 */
	@Column(name = "ISDELETE", length = 500)
	private Integer isdelete = 0;

	
	// get() / set()
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public HRTMember getHrtMember() {
		return hrtMember;
	}

	public void setHrtMember(HRTMember hrtMember) {
		this.hrtMember = hrtMember;
	}

	public Long getHrtMemberId() {
		return hrtMemberId;
	}

	public void setHrtMemberId(Long hrtMemberId) {
		this.hrtMemberId = hrtMemberId;
	}

	public UsersInfor getUsersInfor() {
		return usersInfor;
	}

	public void setUsersInfor(UsersInfor usersInfor) {
		this.usersInfor = usersInfor;
	}

	public Long getUsersInforId() {
		return usersInforId;
	}

	public void setUsersInforId(Long usersInforId) {
		this.usersInforId = usersInforId;
	}

	public GiftDetail getGiftDetail() {
		return giftDetail;
	}

	public void setGiftDetail(GiftDetail giftDetail) {
		this.giftDetail = giftDetail;
	}

	public Long getGdeId() {
		return gdeId;
	}

	public void setGdeId(Long gdeId) {
		this.gdeId = gdeId;
	}

	public Comments getComments() {
		return comments;
	}

	public void setComments(Comments comments) {
		this.comments = comments;
	}

	public Long getCommentsId() {
		return commentsId;
	}

	public void setCommentsId(Long commentsId) {
		this.commentsId = commentsId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Integer getAnonymous() {
		return anonymous;
	}

	public void setAnonymous(Integer anonymous) {
		this.anonymous = anonymous;
	}

	public Integer getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(Integer isdelete) {
		this.isdelete = isdelete;
	}


	
}
